<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
use think\Session;
class Base extends Controller
{

		public function _initialize(){
        if(!session('username')){
            $this->error('请先登录系统','Login/index');

        }
    }

}
?>